package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 确定业务单据对应审批流程，比如请假单，如果BILL_KIND和DEPT_ID均为空，说明所有的请假单都是相同的审批流程；
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class BdpWfAssign extends Model<BdpWfAssign> {

    private static final long serialVersionUID=1L;

    /**
     * 分配标识
     */
    @TableId("ASSIGN_ID")
    private String assignId;

    /**
     * 单据类别标识
     */
    @TableField("BILL_KIND_ID")
    private String billKindId;

    /**
     * 一个标志串，意即标志匹配就用此流程
     */
    @TableField("APPLIANCE_SIGN")
    private String applianceSign;

    /**
     * 公式返回逻辑值，为真即使用此流程。公式中可以使用单据对象BILL
     */
    @TableField("APPLIANCE_EXP")
    private String applianceExp;

    /**
     * 审批流程
     */
    @TableField("FLOW_ID")
    private String flowId;

    /**
     * 公司
     */
    @TableField("INNER_COMPANY_ID")
    private String innerCompanyId;

    /**
     * 创建人
     */
    @TableField("INNER_CREATOR_ID")
    private String innerCreatorId;

    /**
     * 创建时间
     */
    @TableField("INNER_CREATE_TIME")
    private LocalDateTime innerCreateTime;

    /**
     * 删除标志
     */
    @TableField("INNER_DELETE_FLAG")
    private Integer innerDeleteFlag;


    public String getAssignId() {
        return assignId;
    }

    public BdpWfAssign setAssignId(String assignId) {
        this.assignId = assignId;
        return this;
    }

    public String getBillKindId() {
        return billKindId;
    }

    public BdpWfAssign setBillKindId(String billKindId) {
        this.billKindId = billKindId;
        return this;
    }

    public String getApplianceSign() {
        return applianceSign;
    }

    public BdpWfAssign setApplianceSign(String applianceSign) {
        this.applianceSign = applianceSign;
        return this;
    }

    public String getApplianceExp() {
        return applianceExp;
    }

    public BdpWfAssign setApplianceExp(String applianceExp) {
        this.applianceExp = applianceExp;
        return this;
    }

    public String getFlowId() {
        return flowId;
    }

    public BdpWfAssign setFlowId(String flowId) {
        this.flowId = flowId;
        return this;
    }

    public String getInnerCompanyId() {
        return innerCompanyId;
    }

    public BdpWfAssign setInnerCompanyId(String innerCompanyId) {
        this.innerCompanyId = innerCompanyId;
        return this;
    }

    public String getInnerCreatorId() {
        return innerCreatorId;
    }

    public BdpWfAssign setInnerCreatorId(String innerCreatorId) {
        this.innerCreatorId = innerCreatorId;
        return this;
    }

    public LocalDateTime getInnerCreateTime() {
        return innerCreateTime;
    }

    public BdpWfAssign setInnerCreateTime(LocalDateTime innerCreateTime) {
        this.innerCreateTime = innerCreateTime;
        return this;
    }

    public Integer getInnerDeleteFlag() {
        return innerDeleteFlag;
    }

    public BdpWfAssign setInnerDeleteFlag(Integer innerDeleteFlag) {
        this.innerDeleteFlag = innerDeleteFlag;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.assignId;
    }

    @Override
    public String toString() {
        return "BdpWfAssign{" +
        "assignId=" + assignId +
        ", billKindId=" + billKindId +
        ", applianceSign=" + applianceSign +
        ", applianceExp=" + applianceExp +
        ", flowId=" + flowId +
        ", innerCompanyId=" + innerCompanyId +
        ", innerCreatorId=" + innerCreatorId +
        ", innerCreateTime=" + innerCreateTime +
        ", innerDeleteFlag=" + innerDeleteFlag +
        "}";
    }
}
